/*
 * @Author: Du.M
 * @Date: 2021-06-21 15:34:26
 * @LastEditTime: 2021-07-09 17:12:20
 * @FilePath: \antd简单项目\config\routes.js
 */
export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
      {
        path:'/qrForm',
        name:'qrForm',
        icon:'UserOutlined',
        component:'./QrForm',
      },
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            // redirect:'/main',
            // authority: ['admin', 'user'],
            routes: [
              {
                path: '/',
                redirect: '/main',
              },
              {
                path:'/main',
                name:'main',
                icon:'UserOutlined',
                component:'./Main',
              },
              // {
              //   path:'/rendManager',
              //   name:'rendManager',
              //   icon:'UserOutlined',
              //   component:'./RendManager',
              // },
              
              // {
              //   path: '/admin',
              //   name: 'admin',
              //   icon: 'crown',
              //   component: './Admin',
              //   // authority: ['admin'],
              //   routes: [
              //     {
              //       path: '/admin/sub-page',
              //       name: 'sub-page',
              //       icon: 'smile',
              //       component: './Welcome',
              //       // authority: ['admin'],
              //     },
              //   ],
              // },
              // {
              //   name: 'list.table-list',
              //   icon: 'table',
              //   path: '/list',
              //   component: './TableList',
              // },
              // {
              //   component: './404',
              // },
            ],
          },
          // {
          //   component: './404',
          // },
        ],
      },
    ],
  },
  // {
  //   component: './404',
  // },
];
